package cn.lb.org.mapper;

import cn.lb.basic.mapper.BaseMapper;
import cn.lb.org.domain.Employee;
import cn.lb.org.query.EmployeeQuery;
import cn.lb.permission.domain.Role;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {


    List<Employee> tree();

    Employee getByEmployee(String username);

    void deleterole(Long employeeId);

    void setroles(@Param("employeeId") Long employeeId, @Param("role") List<Long> roleId);

    Long getRoleIdBySn(String sn);
}
